package com.chuanyang.driverh.mainmy;

import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;

import com.chuanyang.driverh.R;
import com.chuanyang.driverh.base.BaseTitleActivity;
import com.chuanyang.driverh.utils.ActivityUtil;

/**
 *
 */

public class AccountMoneyActivity extends BaseTitleActivity {

    private RelativeLayout rl_draw_money;//提现
    private RelativeLayout rl_shift_money;//转入
    private RelativeLayout rl_fund;//基金
    @Override
    protected int getContentResId() {
        return R.layout.my_act_accountmoney;
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        rl_draw_money = (RelativeLayout) findViewById(R.id.rl_draw_money);//提现
        rl_shift_money = (RelativeLayout) findViewById(R.id.rl_shift_money);//转入
        rl_fund = (RelativeLayout) findViewById(R.id.rl_fund);//基金
    }


    @Override
    public void initData() {
        setBackImg();
        getTitleTextView().setText("账户余额");

    }

    @Override
    protected void initListener() {
        rl_draw_money.setOnClickListener(this);
        rl_shift_money.setOnClickListener(this);
        rl_fund.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        super.onClick(v);
        switch (v.getId()){
            case R.id.rl_draw_money://提现
                ActivityUtil.startActivity(activityContext,AccountDrawMoneyActivity.class);
                break;
            case R.id.rl_shift_money://转入

                break;
            case R.id.rl_fund://基金

                break;
        }
    }
}
